<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<%@taglib uri="/WEB-INF/dianning.tld" prefix="dianning"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>点宁网[<dianning:webinfo type="area"/>分类信息]<dianning:webinfo type="area"/>免费发布信息<dianning:webinfo type="poweredby"/></title>
<meta name="Description" content="<dianning:webinfo type="area"/>分类信息网为您提供<dianning:webinfo type="area"/>分类信息，您可以免费发布和查询求职招聘,兼职,房屋出租,二手市场,生活服务,兼职,黄页等分类信息."/>
<meta name="Keywords" content="<dianning:webinfo type="area"/>免费发布信息, <dianning:webinfo type="area"/>分类信息, <dianning:webinfo type="area"/>信息港, <dianning:webinfo type="area"/>热线, <dianning:webinfo type="area"/>免费发布广告，<dianning:webinfo type="area"/>114"/>
<link href="/css/index.css" rel="stylesheet" type="text/css" />
<link href="/css/list.css" rel="stylesheet" type="text/css" />
<link href="/css/validator.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/jquery_last.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/formValidator.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/formValidatorRegex.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/popup.js"></script>
</head>
<body>
<form name="login" id="login" method="post" action="/login.action">
<s:hidden name="tourl" />
<s:hidden name="action" />
<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="65%"><table width="100%" border="0" cellspacing="5" cellpadding="0">
            <tr>
              <td height="50" colspan="3"><img src="/images/user_4.gif" width="383" height="32" /></td>
              </tr>
            <tr>
              <td width="17%" height="40" align="right">用户名：</td>
              <td><s:textfield id="username" name="username" size="30" maxlength="80" /><span id="usernameTip"></span></td>
            </tr>
            <tr>
              <td width="17%" height="40" align="right">密&nbsp;&nbsp;码：</td>
              <td><s:password id="password" name="password" size="30" maxlength="80" /><span id="passwordTip"></span></td>
            </tr>
            <tr>
              <td height="50" align="center">&nbsp;</td>
              <td height="50"><input type="submit" name="Submit" value="登录" /></td>
              </tr>
          </table>
    </form>
<script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({formid:"login",errorfocus: true});
	$("#username").formValidator({onshow:"请输入用户名",onfocus: "请输入用户名"}).regexValidator({ regexp: "^[A-Za-z0-9_]*$", onerror: "只能输入大小写英文字母、数字" }).regexValidator({ regexp: "^(.){3,20}$", onerror: "用户名为3-20个字！" });
	$("#password").formValidator({onshow:"请输入密码",onfocus: "请输入密码" }).regexValidator({ regexp: "^[A-Za-z0-9]*$", onerror: "只能输入大小写英文字母、数字" }).regexValidator({ regexp: "^(.){6,20}$", onerror: "密码为6-20个字！" });

	<s:if test="#session.code=='available_error'">
		alert('账户己被禁用');
	</s:if>
	<s:if test="#session.code=='user_error'">
		alert('账户或密码错误');
	</s:if>
	<s:if test="#session.code=='password_error'">
		alert('账户或密码错误');
	</s:if>	
});
</script>
</body>
</html>